package com.neusoft.neu24.myaspect.service.impl;

import com.neusoft.neu24.myaspect.service.IMemberService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

@Service
public class MemberService  implements IMemberService {
    @Override
    public void addMember(int  i ) {
        System.out.println(i );
        System.out.println("MemberServiceImpl.addMember");
    }

    @Override
    public void selectAll() {
        System.out.println("selectAll");
    }

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        IMemberService memberServiceImpl = (IMemberService) context.getBean("memberService");
        memberServiceImpl.selectAll();
        memberServiceImpl.addMember(123);
    }
}
